﻿package com.shawnblais.sitecontrol
{
    import flash.display.*;
    import flash.events.*;

    public class SiteControl extends EventDispatcher
    {
        public var view:SiteView;
        public var data:SiteData;
        private var _stage:DisplayObjectContainer;

        public function SiteControl(param1:DisplayObjectContainer)
        {
            this._stage = param1;
            this.data = new SiteData();
            this.view = new SiteView(this.data, this);
            this._stage.addChildAt(this.view, 0);
            this.loadSite();
            return;
        }// end function

        public function loadSite() : void
        {
            this.view.loadPage();
            return;
        }// end function

    }
}
